<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>项目管理</title>
<%@ include file="/module/js.jsp"%>
<script type="text/javascript">
$(document)
.ready(
		function() {
			//查询
			$('#btnQuery').click(function() {
				document.semesterForm.action = "${basePath}/semesterSummary/recommendStudentClassReport";
				document.semesterForm.submit();
			 
			});
			//打印
			 $("#btnPrint").click(function(){
				 layer.confirm("您确定需要打印吗?", {icon: 3, title:'提示',skin:'layer-ext-moon'}, function(index){
						$("#recommendStudentDataTable").printArea();
				 },function(index){
						layer.close(index);
	              });
			});
			$('#btnExport').on('click', function(){
				   layer.confirm("您确定要导出吗?", {icon: 3, title:'提示',skin:'layer-ext-moon'}, function(index){
					   var rows = $("#dg").datagrid("getRows");
					   var bodyData = JSON.stringify(rows);  //转成json字符串
					    $("#bodyData").val(JSON.stringify(rows));
							document.semesterForm.action = "${basePath}/semesterSummary/exportRecommendStudent";
							document.semesterForm.submit();
            		 });
				});
		});



</script>


</head>
<body style="height: 100%">
	<form action="#" name="semesterForm" id="semesterForm" method="post">
	<input  type="hidden" id="bzr" name="bzr" value="${ismanager}"/>
		<table cellpadding="1" cellspacing="1" border="0">
			<tr>
				<td><input type="button" id="btnQuery" autocomplete="off"  value="查询"
					class="inputButton" /></td>
			    <td><input type="button" id="btnPrint" autocomplete="off"  value="打印"
					class="inputButton" /></td>
			
			</tr>
		</table>
		<table cellpadding="1" cellspacing="1">
		  <%@ include file="/module/gradeSpecityXqByClass.jsp"%>
		</table>
		<br/>
	   <div id="recommendStudentDataTable">
	    ${dataTableHtml}
	   </div>
		<script type="text/javascript">
			 compareListValue(document.getElementById('semid'),'${semester.xqid}');
			 if("${msg}"!=""){
			       layer.alert("${msg}", {icon: 6});
			 }
			 
			 compareListValue(document.getElementById('njid'),'${njid}');
			 compareListValue(document.getElementById('zyid'),'${zyid}');
			 compareListValue(document.getElementById('bjid'),'${bjid}');
			 compareListValue(document.getElementById('semid'),'${semid}');
		</script>
	</form>
</body>
</html>
